//g++ -g -o file_test file_test.cpp -I/home/sun/workspace/SDFS2 -I/home/sun/libs/muduo/include -L/home/sun/libs/muduo/lib -lmuduo_base -lmuduo_net -lpthread -lboost_system -lboost_filesystem

#include <muduo/base/Types.h>

#include <sdfs/common/Pool.h>
#include <sdfs/common/File.h>
#include <iostream>

using namespace std;
using namespace sdfs::common;

int main()
{
	muduo::string filepath = "/home/sun/testfile";
	WriteOnlyFile file(filepath, 1024*100);
	file.seekFromBeginning(0);
	file.write("hello world", 12);
	file.updateLastPos(12);
}